@import "iconfont";
@import "uview-ui/index";
@import "function";
@import "mixin";

*,
view,
text,
scroll-view,
image,
video,
swiper,
button {
  box-sizing: border-box;
}

.container,
body {
  @include flex(column);
  flex: 1;
  height: auto;
  min-height: 100vh;
  color: $main;
  background: $inverse;
  transition: background 0.3s ease, color 0.3s ease;
}

body {
  font-size: $font-size-base;
  // 20px转rem
  // border: rem(20) solid blanchedalmond;
}

// .scroll-view是给h5的,小程序直接写scroll-y属性即可实现自适应高度
.scroll-view,
scroll-view[scroll-y] {
  flex: 1;
  height: 100%;
}

swiper {
  @include flex(column);
  flex: 1;
  .uni-swiper-wrapper {
    flex: 1;
  }
}
